package com.yuanduan.mplus.view;

import android.graphics.Color;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.cj.framework.app.BaseActivity;
import com.yuanduan.mplus.R;

/**
 * Created by cj on 2016/6/7.
 * Email:781806481@qq.com
 */
public class ZxingActivity extends BaseActivity {
    private Toolbar toolbar;

    @Override
    protected void findId() {
        toolbar= (Toolbar) findViewById(R.id.toolbar);
    }

    @Override
    protected void logic() {
        toolbar.setTitle("分享二维码");
        toolbar.setTitleTextColor(Color.BLACK);
        toolbar.setNavigationIcon(R.mipmap.back_arrow_black);
        setSupportActionBar(toolbar);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ZxingActivity.this.finish();
            }
        });
    }

    @Override
    protected int setLayout() {
        return R.layout.activity_zxing;
    }
}
